﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace Southridge.Business
{
    //TODO: this needs to come from database ..  but we don't yet have agent data model ... 

    public class MostRecentFiles : ObservableCollection<MostRecentFile>
    {
        private MostRecentFiles()
        {
            Add(new MostRecentFile("Jaime Rodriguez", true));
            Add(new MostRecentFile("Mark Wilson Thomas", false));
        }

        static MostRecentFiles _single; 

        public static MostRecentFiles SingletonNotImplemented
        {
            get
            {
                if (_single == null )
                {
                    _single = new MostRecentFiles(); 
                }
                return _single; 
            }  

        } 
    }

    public class MostRecentFile
    {
        public MostRecentFile(string name, bool isFixed)
        {
            Name = name;
            IsFixed = isFixed;
        }

        public string Name
        {
            get;
            set;
        }

        public bool IsFixed
        {
            get { return _isFixed; }
            set { _isFixed = value; }
        }
        bool _isFixed;
    }
}
